package cn.digitalize.generate.modular.basic.service;

import cn.digitalize.generate.modular.basic.entity.CodeGenerateBasic;
import cn.digitalize.generate.modular.basic.result.MysqlColumnResult;
import cn.digitalize.generate.modular.basic.result.MysqlTableResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @author Created by ZhangCheng on 2023/06/09 (代码生成基础配置)
 */
public interface CodeGenerateBasicService extends IService<CodeGenerateBasic> {

    /**
     * 查询Mysql数据表所有字段
     *
     * @param tableName
     * @return
     */
    List<MysqlColumnResult> queryMysqlColumnResult(String tableName);

    /**
     * 新增生成代码表数据
     *
     * @param codeGenerateBasic
     */
    void addGenerateBasic(CodeGenerateBasic codeGenerateBasic);

    /**
     * 查询Mysql所有数据表信息
     *
     * @return
     */
    List<MysqlTableResult> queryMysqlTableResult();
}
